using System.Windows;
using Common.Interfaces;
using Microsoft.Practices.Composite.Modularity;
using Microsoft.Practices.Composite.UnityExtensions;

using Common.Services;
namespace KMS
{
    public class Bootstrapper:UnityBootstrapper
    {
        protected override DependencyObject CreateShell()
        {
            var shell = new Shell();
            shell.Show();
            return shell;
        }

        protected override void ConfigureContainer()
        {
            base.ConfigureContainer();
            Container.RegisterType<IModuleServices, ModuleServices>();
        }

        protected override IModuleCatalog GetModuleCatalog()
        {
            var catalog = new DirectoryModuleCatalog {ModulePath = @".\"};
            return catalog;
        }
    }
}